const express = require('express')
const app = express()
//挂载路由
app.get('/',(req,res)=>{
    res.send('hello express')
})
app.post('/',(req,res)=>{
    res.send('post successfully')
})
//设置端口号
app.listen(80,()=>{
    console.log('server running')
    
})